package Model;
import java.util.ArrayList;

public class OrderCont
{
   public static ArrayList<Order> orders;
   
   private static OrderCont instance;
   
  private OrderCont()
  {
      orders=new ArrayList<Order>();
  }
  
  public static OrderCont getInstance(){
      if(instance==null){
          instance=new OrderCont();
        }
        return instance;
    }
    
    public static void addOrder(Order o)
    {
        orders.add(o);
    }
    
    public static ArrayList<Order> getCont()
    {
        return orders;
    }
}
